package com.edwin.log4jannotation;

import com.edwin.log4j.Log4J;
import com.edwin.log4j.Log4J.l;
import com.edwin.log4jannotation.FruitColor.Color;

public class Apple {

	@Log4J(lv = l.INFO, print = "appleName")
	@FruitName("Apple")
	private String	appleName;

	@FruitColor(fruitColor = Color.RED)
	private String	appleColor;

	@FruitProvider(id = 1, name = "陕西红富士集团", address = "陕西省西安市延安路89号红富士大厦")
	private String	appleProvider;

	public void setAppleColor(String appleColor) {
		this.appleColor = appleColor;
	}

	public String getAppleColor() {
		return appleColor;
	}

	public void setAppleName(String appleName) {
		this.appleName = appleName;
	}

	public String getAppleName() {

		return appleName;
	}

	public void setAppleProvider(String appleProvider) {
		this.appleProvider = appleProvider;
	}

	public String getAppleProvider() {
		return appleProvider;
	}

	public void displayName() {
		// System.out.println("水果的名字是：苹果");
		System.out.println("水果的名字是:" + this.getAppleName() + "\n" + "苹果的颜色是:" + this.getAppleColor());
	}
}
